package com.mksujosu.main;

import com.mksujosu.main.ParallayBackground.ParallayEntity;


public class AutoParallayBackground extends ParallayBackground{
	
    private float mParallayChangePerSecond;
    
    
	public AutoParallayBackground(float pRed, float pGreen, float pBlue,final float pParallayChangePerSecond) {
		super(pRed, pGreen, pBlue);
		mParallayChangePerSecond = pParallayChangePerSecond;
	}
	
	public void setParallayChangePerSecond(final float pParallayChangePerSecond) {
		this.mParallayChangePerSecond = pParallayChangePerSecond;
	}

	@Override
	public void onUpdate(float pSecondsElapsed) {
		// TODO Auto-generated method stub
		super.onUpdate(pSecondsElapsed);
		
		this.mParallayValue += this.mParallayChangePerSecond * pSecondsElapsed;
	}

	
}
